package com.ksyun.cloudhostalarmprocessing.service;

import com.ksyun.cloudhostalarmprocessing.common.QueryRequest;
import com.ksyun.cloudhostalarmprocessing.common.QueryResponse;
import com.ksyun.cloudhostalarmprocessing.common.Request;
import com.ksyun.cloudhostalarmprocessing.entity.Alerts;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ksyun.cloudhostalarmprocessing.entity.vo.AlertDataVO;
import com.ksyun.cloudhostalarmprocessing.entity.vo.AlertVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李厚航
 * @since 2024-05-07
 */
public interface IAlertsService {

    /**
     * 添加一条数据
     * @param alerts
     * @return
     */
    Integer add(Alerts alerts);


    List<AlertVo> findAlert(Integer page,Integer size);

    /**
     * 根据时间段查询数据
     * @return
     */
    QueryResponse<AlertDataVO> getByTimeStamp(QueryRequest queryRequest);

    Integer selectCount();
}
